package com.hcy.es.pojo;

import lombok.Data;

/**
 * @Author huchenying
 * @Description  测试数据
 * @Date 2021/9/10
 **/
@Data
public class Employee {
    private Integer id;
    private String name;
    private String job;
    private Integer age;
    private String gender;
}
/**
 PUT employee
 {
 "mappings": {
 "properties": {
 "id": {
 "type": "integer"
 },
 "name": {
 "type": "keyword"
 },
 "job": {
 "type": "keyword"
 },
 "age": {
 "type": "integer"
 },
 "gender": {
 "type": "keyword"
 }
 }
 }
 }


 PUT employee/_bulk
 {"index": {"_id": 1}}
 {"id": 1, "name": "Bob", "job": "java", "age": 21, "sal": 8000, "gender": "male"}
 {"index": {"_id": 2}}
 {"id": 2, "name": "Rod", "job": "html", "age": 31, "sal": 18000, "gender": "female"}
 {"index": {"_id": 3}}
 {"id": 3, "name": "Gaving", "job": "java", "age": 24, "sal": 12000, "gender": "male"}
 {"index": {"_id": 4}}
 {"id": 4, "name": "King", "job": "dba", "age": 26, "sal": 15000, "gender": "female"}
 {"index": {"_id": 5}}
 {"id": 5, "name": "Jonhson", "job": "dba", "age": 29, "sal": 16000, "gender": "male"}
 {"index": {"_id": 6}}
 {"id": 6, "name": "Douge", "job": "java", "age": 41, "sal": 20000, "gender": "female"}
 {"index": {"_id": 7}}
 {"id": 7, "name": "cutting", "job": "dba", "age": 27, "sal": 7000, "gender": "male"}
 {"index": {"_id": 8}}
 {"id": 8, "name": "Bona", "job": "html", "age": 22, "sal": 14000, "gender": "female"}
 {"index": {"_id": 9}}
 {"id": 9, "name": "Shyon", "job": "dba", "age": 20, "sal": 19000, "gender": "female"}
 {"index": {"_id": 10}}
 {"id": 10, "name": "James", "job": "html", "age": 18, "sal": 22000, "gender": "male"}
 {"index": {"_id": 11}}
 {"id": 11, "name": "Golsling", "job": "java", "age": 32, "sal": 23000, "gender": "female"}
 {"index": {"_id": 12}}
 {"id": 12, "name": "Lily", "job": "java", "age": 24, "sal": 2000, "gender": "male"}
 {"index": {"_id": 13}}
 {"id": 13, "name": "Jack", "job": "html", "age": 23, "sal": 3000, "gender": "female"}
 {"index": {"_id": 14}}
 {"id": 14, "name": "Rose", "job": "java", "age": 36, "sal": 6000, "gender": "female"}
 {"index": {"_id": 15}}
 {"id": 15, "name": "Will", "job": "dba", "age": 38, "sal": 4500, "gender": "male"}
 {"index": {"_id": 16}}
 {"id": 16, "name": "smith", "job": "java", "age": 32, "sal": 23000, "gender": "male"}
 **/
